<?php if(!$this->login_model->get_login(1)){ ?>
<form name="frm" action="<?php echo $this->site['base_url']?>login/sm" method="post">
<table class="left" align="center" cellspacing="0" cellpadding="0">
  <tr>
    <td class="left_title_top" align="left"><div style="padding-top:5px;"><?php echo Kohana::lang('site_lang.menu_login')?></div>			
  </td>
  </tr>
  <tr>
    <td class="left_middle">
    <div style="padding-left:10px">
    <table align="center" cellspacing="0" cellpadding="3">
      <tr>
        <td align="center" class="error"><?php if(isset($error_msg)) echo $error_msg ?>&nbsp;</td>
      </tr>
      <tr>
        <td><?php echo Kohana::lang('login_lang.lbl_username') ?>:</td>
      </tr>
      <tr>
        <td><input name="txt_username" type="text" id="txt_username" class="text" style="width:145px"/></td>
      </tr>
      <tr>
        <td><?php echo Kohana::lang('login_lang.lbl_password') ?>:</td>
      </tr>
      <tr>
        <td><input name="txt_password" type="password" id="txt_password" class="text" style="width:145px"/></td>
      </tr>
      <tr>
        <td class="login_button" align="center"><input type="submit" name="btn_submit" class="button" value="<?php echo Kohana::lang('login_lang.btn_login')?>" /></td>
      </tr>
      <tr>
        <td align="center"><a href="<?php echo $this->site['base_url']?>forgetpass"><?php echo Kohana::lang('login_lang.lbl_forgetpass')?></a></td>
      </tr>
      <tr>
        <td align="center"><a href="<?php echo $this->site['base_url']?>forgetpass"></a><a href="<?php echo $this->site['base_url']?>register"><?php echo Kohana::lang('login_lang.lbl_create_acc')?></a></td>
      </tr>
    </table>
    </div>
	</td>
  	</tr>
  	<tr>
    <td class="left_bottom">&nbsp;</td>
  	</tr>
</table>
</form>
<script language="javascript">
document.getElementById('txt_username').focus();
</script>
<?php } ?>